<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Template.Master" Inherits="IWS.SiteManager.Web.Views.LayoutView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Recover Password</h2>
    
<%		var success = ViewData["success"] as bool?;
		if (!success.HasValue)
		{%>
			<p>To reset your password, enter your email address here, and we will email you your new password. </p>
<%			using (Html.BeginForm())
			{ %>
		<p><%=Html.TextBox("Email") %></p>
		<input type="submit" value="Submit" />
<%			} %>
<%		}
		else if (success.Value)
		{%>
		<p>Your new password has been emailed to you.</p>
<%		}
		else
		{%>
		<p>Password recovey failed. Please try again later. </p>
<%		}%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="EndBodyContent" runat="server">
</asp:Content>
